<?php
mysql_connect("localhost","root","");
mysql_select_db("fb");
if(isSet($_POST['content']))
{
$content=$_POST['content'];
mysql_query("insert into updates(post) values ('$content')");
$sql_in= mysql_query("SELECT post,id FROM updates order by id desc");
$r=mysql_fetch_array($sql_in);
$msg=$r['post'];
$msg_id=$r['id'];
}

?>
<p class='alert alert-info'>
<?php echo $msg; ?>

</p>